package net.zjitc.action.User.Product;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import net.zjitc.damain.Product.Product;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

/**
 * Created by Administrator on 2017/3/27.
 */
@Controller
@Scope("prototype")
public class UserProductAction extends ActionSupport implements ModelDriven<Product> {
    private Product model = new Product();
    @Override
    public Product getModel() {
        return model;
    }
    /*按一级分类查询*/
    public String findByCid(){
        return "findByCid";
    }
    /*按二级分类查询*/
    public String findByCsid(){
        return "findByCsid";
    }
    /*按商品ID查询*/
    public String findByPid(){
        return "findByPid";
    }


}
